package beans.wxresult;

import beans.subject.subinfo;

public class Rec {
	public Rec() {

	}
	public Rec(subinfo sub,Integer _line) {
		id = sub.getId();
		type = sub.getType();
		btestid = "";
		question = sub.getQuestion();
		an1 = sub.getAn1();
		an2 = sub.getAn2();
		an3 = sub.getAn3();
		an4 = sub.getAn4();

		String[] ans = sub.getAnswertrue().split(",");
		String _answertrue = "";
		for(String s : ans) {
			if(s.equals("1"))_answertrue += ",A";
			else if(s.equals("2"))_answertrue += ",B";
			else if(s.equals("3"))_answertrue += ",C";
			else if(s.equals("4"))_answertrue += ",D";
		}

		answertrue = _answertrue.substring(0,_answertrue.length()-1);

		helptip = sub.getHelptip();
		img = sub.getImg();
		jqimg = sub.getJqimg();
		jqdetail = sub.getJqdetail();
		class1 = "";
		class2 = "";
		line = _line;
		answertruen = sub.getAnswertrue();
		mp3 = sub.getMp3();
		mp32 = sub.getMp32();
	}
	private String id;
	private String type;
	private String btestid;
	private String question;
	private String an1;
	private String an2;
	private String an3;
	private String an4;
	private String answertrue;
	private String helptip;
	private String img;
	private String jqimg;
	private String jqdetail;
	private String class1;
	private String class2;
	private Integer line;
	private String answertruen;
	private String mp3;
	private String mp32;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getBtestid() {
		return btestid;
	}
	public void setBtestid(String btestid) {
		this.btestid = btestid;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAn1() {
		return an1;
	}
	public void setAn1(String an1) {
		this.an1 = an1;
	}
	public String getAn2() {
		return an2;
	}
	public void setAn2(String an2) {
		this.an2 = an2;
	}
	public String getAn3() {
		return an3;
	}
	public void setAn3(String an3) {
		this.an3 = an3;
	}
	public String getAn4() {
		return an4;
	}
	public void setAn4(String an4) {
		this.an4 = an4;
	}
	public String getAnswertrue() {
		return answertrue;
	}
	public void setAnswertrue(String answertrue) {
		this.answertrue = answertrue;
	}
	public String getHelptip() {
		return helptip;
	}
	public void setHelptip(String helptip) {
		this.helptip = helptip;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getJqimg() {
		return jqimg;
	}
	public void setJqimg(String jqimg) {
		this.jqimg = jqimg;
	}
	public String getJqdetail() {
		return jqdetail;
	}
	public void setJqdetail(String jqdetail) {
		this.jqdetail = jqdetail;
	}
	public String getClass1() {
		return class1;
	}
	public void setClass1(String class1) {
		this.class1 = class1;
	}
	public String getClass2() {
		return class2;
	}
	public void setClass2(String class2) {
		this.class2 = class2;
	}
	public Integer getLine() {
		return line;
	}
	public void setLine(Integer line) {
		this.line = line;
	}
	public String getAnswertruen() {
		return answertruen;
	}
	public void setAnswertruen(String answertruen) {
		this.answertruen = answertruen;
	}
	public String getMp3() {
		return mp3;
	}
	public void setMp3(String mp3) {
		this.mp3 = mp3;
	}
	public String getMp32() {
		return mp32;
	}
	public void setMp32(String mp32) {
		this.mp32 = mp32;
	}

}
